import {createStore, applyMiddleware, compose} from 'redux';
import promiseMiddleware from 'redux-promise';
import createSagaMiddleware from 'redux-saga';
import sagas from './sagas/index'
import reducers from './reducers/index';

const sagaMiddleware = createSagaMiddleware();
const reduxStores = createStore(reducers, applyMiddleware(promiseMiddleware, sagaMiddleware));
sagaMiddleware.run(sagas);
export default reduxStores;
